/*
 * @Author: your name
 * @Date: 2021-03-07 11:33:59
 * @LastEditTime: 2021-03-14 13:55:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \learn-fe\learn-small-program\pages\shopDetail\shopDetail.js
 */
Page({
  data: {
    shopDetail: {},
  },
  onLoad() {
    try {
      const dishData = wx.getStorageSync("currentDish");
      if (dishData) {
        this.setData({
          shopDetail: JSON.parse(dishData),
        });
        console.log(dishData);
      }
    } catch (err) {
      console.error(err);
    }
  },
});
